package cn.zwxky.android.staff.Follow;

import android.content.Context;

import com.zgscwjm.lsfbbasetemplate.adapter.CommonAdapter;
import com.zgscwjm.lsfbbasetemplate.adapter.CommonRecycAdapter;
import com.zgscwjm.lsfbbasetemplate.adapter.ViewHolder;
import com.zgscwjm.lsfbbasetemplate.adapter.ViewHolderRecyc;

import java.util.List;

import cn.zwxky.android.staff.R;
import cn.zwxky.android.staff.Utils.URLString;

/**
 * Created by Administrator on 2017/4/5 0005.
 */

//public class FollowAdapter extends CommonRecycAdapter<FollowBean.ListBean> {
//    public FollowAdapter(Context context, List<FollowBean.ListBean> list, int layoutId) {
//        super(context, list, layoutId);
//    }
//
//    @Override
//    public void convert(ViewHolderRecyc holder, FollowBean.ListBean model) {
//          holder.setImg(R.id.fg_my_img_head, URLString.IMG_URL+model.getImg(),R.mipmap.img_my_details_head);
//          holder.setText(R.id.item_img_follow_text_name,model.getName());
//          holder.setText(R.id.item_img_follow_text_tieme,model.getTimes());
//          holder.setText(R.id.item_img_follow_text_info,model.getContent());
//    }
//}

public class FollowAdapter extends CommonAdapter<FollowBean.ListBean> {

    public FollowAdapter(Context context, int layoutId, List<FollowBean.ListBean> list) {
        super(context, layoutId, list);
    }

    @Override
    public void convert(ViewHolder holder, FollowBean.ListBean model) {
        holder.setImg(R.id.fg_my_img_head, URLString.IMG_URL+model.getImg(),R.mipmap.img_my_details_head);
          holder.setText(R.id.item_img_follow_text_name,model.getName());
          holder.setText(R.id.item_img_follow_text_tieme,model.getTimes());
          holder.setText(R.id.item_img_follow_text_info,model.getContent());
    }
}
